<include file="Public:header"/>
<div class="mainbox">
    <br/>
    <h1>北京化工大学教职工机动车证申请表</h1>
    <br/><br/>

    <h4>申请人信息</h4>
    <br/>

    <form class="form-horizontal" action="{:U('Home/Car/save')}" method="POST" enctype="multipart/form-data"
          id="car-form">
        <input type="hidden" name="id" value="{$info['id']}"/>
        <input type="hidden" name="tab_car_id" value="{$info['tab_car_id']}"/>

        <input type="hidden" name="status" value="{$info['status']}"/>
        <input type="hidden" name="staff_id" value="{$info['staff_id']}"/>
        <input type="hidden" name="is_agree" value="1"/>
        <div class="form-group" style="margin-bottom:-18px;">
            <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>单位</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="inputEmail3" disabled value="{$staff['staff_unit']}">
            </div>
        </div>

        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>姓名</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="inputEmail3" disabled value="{$staff['staff_name']}">
            </div>
        </div>

        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>手机</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="inputEmail3" disabled value="{$staff['staff_tel']}">
            </div>
        </div>

        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>邮箱</label>
            <div class="col-sm-9">
                <input type="email" class="form-control" id="inputEmail3" disabled value="{$staff['staff_email']}">
            </div>
        </div>

        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>工号</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="inputEmail3" disabled value="{$staff['staff_id']}">
            </div>
        </div>


        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>车证类型</label>
            <div class="col-sm-9" style="color:black;">
                <select class="form-control" style="color:black;" name="car_type">
                    <option value=''>请选择</option>
                    <option value='1' <if condition="$info['car_type'] eq 1"> selected</if> >通行证</option>
                    <option value='2' <if condition="$info['car_type'] eq 1"> selected</if> >停车证</option>
                </select>
            </div>
        </div>
        <br/>
        <h4>行驶证信息</h4>
        <br/>

        <form class="form-horizontal">
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>车主姓名</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="inputEmail3" name="owner_name" value="{$info['owner_name']}">
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">所有人地址</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="inputEmail3" name="owner_add" value="{$info['owner_add']}">
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>与车主关系</label>
                <div class="col-sm-9">
                    <select class="form-control" style="color:black;" name="relation">
                        <option value="">请选择</option>
                        <option value="1" <if condition="$info['relation'] eq 1"> selected</if> >本人</option>
                        <option value="2" <if condition="$info['relation'] eq 2"> selected</if> >夫妻</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">品牌</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="inputEmail3" name="brand" value="{$info['brand']}">
                </div>
            </div>
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">颜色</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="inputEmail3" name="color" value="{$info['color']}">
                </div>
            </div>

            <div class="form-group">
                <label for="exampleInputFile" class="col-sm-2 control-label" name="photo[]">上传车照片</label>
                <div class="col-sm-9">
                    <input type="file" id="exampleInputFile" name="photo[]" value="{$info['car_photo']}">
                </div>
            </div>
            <div class="form-group">
                <label for="exampleInputFile" class="col-sm-2 control-label"><span
                        style="color:#F00">*</span>行驶证照片</label>
                <div class="col-sm-9">
                    <input type="file" id="exampleInputFile" name="photo[]" value="{$info['xingshi_license']}">
                </div>

            </div>
            <div class="form-group">
                <label for="exampleInputFile" class="col-sm-2 control-label"><span
                        style="color:#F00">*</span>驾驶证照片</label>
                <div class="col-sm-9">
                    <input type="file" id="exampleInputFile" name="photo[]" value="{$info['jiashi_license']}">
                </div>

            </div>

            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label"><span style="color:#F00">*</span>车牌号码</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" id="inputEmail3" name="plate_number" value="{$info['plate_number']}">
                </div>
            </div>


            <button type="submit" class="btn btn-info btn-lg save-button" style="margin-left:50px;" >
                <span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span> &nbsp;&nbsp;提交申请&nbsp;&nbsp;&nbsp;
            </button>

            <button type="button" class="btn btn-info btn-lg save-button" style="margin-left:40px;"
                    onclick="javascript:drift()">
                <span class="glyphicon glyphicon-download" aria-hidden="true"></span> 暂存至草稿箱
            </button>


        </form>
        <br/>

        <!-- 2 加载jQuery库，同时加载该库必须在加载bootstrap.min.js之前  -->
        <script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
        <!-- 3 加载bootstrap核心 -->
        <script src="__ROOT_/js/bootstrap.min.js"></script>
        <script>
            function drift() {
                $('#car-form').attr('action', "{:U('Home/Car/save?drift=1')}");
                $('#car-form').submit();
            }
        </script>
</div>
</div>
</div>
</body>
</html>
